package cn.edu.scau.cmi.zhonghaozheng.composite.consistent;

import java.util.ArrayList;
import java.util.List;

public abstract class OrganizationComponent {
	OrganizationComponent parent=null;
	List<OrganizationComponent> children=new ArrayList<OrganizationComponent>();
	abstract String doSomething();
	abstract OrganizationComponent getParent();
	abstract OrganizationComponent addChild(OrganizationComponent child);
	abstract OrganizationComponent deleteChild(OrganizationComponent child);
}
